feat(kanban): swimlanes (2-D grouping in the board view)#38
Conversation
Add an optional second grouping dimension rendered as horizontal swimlane rows, so the board becomes a lane × column grid (e.g. priority lanes × status columns). A pure presentational layer over the shared model — works on both the file board and the DB board (both render BoardSurface). No backend/migration/WS changes. - shared/lib/board.ts: `swimlaneBy` config field + partitionSwimlanes() (laneValue → columnValue → cards), reusing groupValueOf/effectiveColumns for lane values. - shared/components/board/BoardSwimlanes.tsx: the 2-D grid view. A read-friendly overview; clicking a card opens the same BoardPeek (where its status / swimlane attribute can be changed). Pointer drag stays in the 1-D board view by design. - BoardSurface: a "Swimlane" toolbar select (None / the non-column dimensions) and a render branch that swaps in the grid when a swimlane is chosen. - Thread swimlaneBy through the three platform config types (desktop BoardConfig, web file-board BoardConfigJSON, web DB-board view). - tests/unit/boardSwimlanes.spec.ts + i18n (zh translations). Verified: root+web tsc clean, unit tests pass, and a throwaway harness confirmed the priority×status grid (cards in the right cells, overdue red, task counts, empty cells), card-click → peek, and that switching Swimlane→None restores the normal drag-enabled board. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Warning Review limit reached
More reviews will be available in 10 minutes and 36 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (17)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
# Conflicts: # shared/i18n/locales/en/messages.mjs # shared/i18n/locales/ja/messages.mjs # shared/i18n/locales/ko/messages.mjs # shared/i18n/locales/zh/messages.mjs
What
Implements C4 — an optional second grouping dimension rendered as horizontal swimlane rows, turning the board into a lane × column grid (e.g. priority lanes × status columns).
Pure presentational layer over the shared board model, so it works on both the file board and the DB board (both render
BoardSurface). No backend/migration/WS changes.Changes
shared/lib/board.ts—swimlaneByconfig field +partitionSwimlanes()(laneValue → columnValue → cards), reusinggroupValueOf/effectiveColumnsfor lane values.shared/components/board/BoardSwimlanes.tsx(new) — the 2-D grid view. A read-friendly overview; clicking a card opens the sameBoardPeek(where its status / swimlane attribute can be changed). Pointer drag intentionally stays in the 1-D board view.BoardSurface— a "Swimlane" toolbar select (None / the non-column dimensions) and a render branch that swaps in the grid when a swimlane is chosen.swimlaneBythrough the three platform config types (desktopBoardConfig, web file-boardBoardConfigJSON, web DB-board view).tests/unit/boardSwimlanes.spec.ts+ i18n (zh translations).Verification
tscclean (root + web), unit tests pass.Follow-up
Drag-and-drop directly within the swimlane grid (cross-lane drag updating both status and the swimlane attribute). For now, cards are repositioned via the peek or the 1-D board view.
🤖 Generated with Claude Code